<template>
  <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="no" :onload="onloadCode" ></iframe>
</template>
<script>
export default {
  props: {
    src: {}
  },
  data() {
    return {
      onloadCode: ''
    }
  },
  created() {
    this.onloadCode =
        `this.contentWindow.document.body.innerHTML = '<video style="width: 100%;height: 100%" controls="controls" src="${this.src}"></video>';`
  },
}
</script>
<style lang="scss">
</style>
